COVID-19 Data Tracking API
Cases - Responses Dictionary
How to use the API to access case information
- The location is either a Zip Code or a 2-letter ISO code for the country or US state.
- If a Zip Code is provided, the returned information will be for the county to which the Zip Code belongs.
- If a Zip Code belongs to multiple counties, then, all the counties' information will be returned.
- If multiple Zip Codes are part of a county, all the associated Zip Codes within the same county will return the same information.
- The days in the past must be up to the last 7 days. The user will receive up to 7 days of historic data from the current date.
NYT | ECDC | COVID Tracking |
---|---|---|
returns the date of data update | returns the date of data update | returns the date of data update |
death count | death count | death count |
reported infection count | reported infection count | reported infection count |
recovery count | recovery count | recovery count |
active case count | active case count | |
number of positive cases | ||
number of negative cases | ||
number of people in hospitals | ||
number of people in intensive care | ||
number of people intubated |
Support: At this time, we only support the input of 1 location at a time.
Support: The Locations API Endpoint returns the most recently available data for the last 24 hours. If there is no data for that location, an HTTP status code of 404 is returned. The accompanying response body will be an empty object {}
.
Support: The Cases API Endpoints do not display all the data over time. The data fetched will be from the last 7 days from the current date when the request is fired. The current date is in UTC. In the event, there is no data present for a particular date, additional data from the past will not be fetched.
This listing includes Coronavirus (COVID-19) data that has been gathered and unified from trusted sources, including the New York Times, the European CDC, and the COVID Tracking Project. This data is provided at no cost to help you make better and faster decisions.
The COVID Tracking Project- https://covidtracking.com/api/v1/states/current.json
The New York Times- https://github.com/nytimes/covid-19-data/blob/master/us-counties.csv
European Centre for Disease Prevention and Control- https://opendata.ecdc.europa.eu/covid19/casedistribution/json